<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7 charset={$charset}" />
<meta http-equiv="Content-Type" content="text/html;charset={$charset}" />
<head>
<title>物品申报信息</title>
<script type="text/javascript" charset="utf-8" src="{lib file=jquery.js}"></script>
<script type="text/javascript" charset="utf-8" src="{lib file=abouts_kuaidi.js}"></script>
<script type="text/javascript" charset="utf-8" src="{res file=js/kd_order_wpxz.js}"></script>
<script type="text/javascript">
var SITE_URL = "{$site_url}";
function DialogClose(){
  parent.$("#FloatBg").hide();
  parent.$("#FloatBoxBg").hide();
  parent.$("#FloatBox").hide();
}
function check_post()
{
  if($("#GoodsName").val()=="" || $("#GoodsCount").val()=="0" || $("#GoodsWorth").val()=="0"){
   alert("无物品申报信息，请添加物品申报信息");
   return false;
  }
  var come = $("#come").val();
  parent.$("#"+come+" #GoodsName").val($("#GoodsName").val()); 
  parent.$("#"+come+" #GoodsCount").val($("#GoodsCount").val()); 
  parent.$("#"+come+" #GoodsWorth").val($("#GoodsWorth").val()); 
  parent.Sum();
  DialogClose();
}
</script>
<style type="text/css">
body {font-size: 12px;}
.select_class {border: 1px #CCC solid;height: 24px; border-radius:2px; margin-right:5px}
.inputBorder{border: 1px #CCC solid;height: 18px;line-height:18px;padding:2px 2px;width:90px;}
.submit_small{ padding:0 20px;background:#4098e6; border:0px;font:13px/30px "Microsoft YaHei"; color:#FFF; border-radius:3px;cursor:pointer;}
.submit_small:hover,.user_submit_mini:hover { background:#1d82dc;}
</style>
</head>
<body>
<form method="post" id="form1">
<input type="hidden" id="come" value="{if $smarty.get.come}{$smarty.get.come}{else}wupin_id_3{/if}" />
<span id="Label1" style="color:Red;"></span>
<div id="div1">
<table width="100%">
  <tr>
      <td width="55px" align="right">物品信息:</td>
      <td><textarea name="GoodsName" id="GoodsName" disabled="disabled" style="width:400px;height:80px;"></textarea>&nbsp;<a style="color:blue;" href="javascript:reload();">清除</a></td>
      </tr>
  <tr>
      <td width="55px" align="right">&nbsp;</td>
      <td><label><input type="checkbox" ID="Checkbox1" onclick="checkDiv()"/><font color="red">如果没有您选择的类别项目,请手动填写。</font></label>
        <div style="display:none">
          数量:<input id="GoodsCount" type="text" value="0" readonly="readonly"/>&nbsp;
          总价值:<input id="GoodsWorth" type="text" value="0" readonly="readonly" />
         </div>
      </td>
      </tr>
</table>
<div id="tabAuto" style="display:block;">
<div id="UpdatePanel2" name="UpdatePanel2">
  <table width="100%">
    <tr>
      <td width="55px" align="right" valign="top" style="padding-top:12px">请选择:</td>
      <td><input type="hidden" name="lbltax" id="lbltax" />
      物品:<select name="wplbdalei" id="wplbdalei" class="select_class" onchange="wplbdalei_Change(this.value)">
      <option selected="selected" value="-1">请选择大类</option>
      <!--{foreach from=$kd_wupin item=list key=key}-->
      <option value="{$key}">{$list}</option>
      <!--{/foreach}-->
      <option value="-99">其他(自填大类)</option>
     </select>
      数量:<input name="wplbcount" type="text" id="wplbcount" style="width:60px;" class="inputBorder"/>
      单价:<input name="wplbworth" type="text" id="wplbworth" style="width:60px;margin-top:5px;" class="inputBorder"/>
      <input type="button" onclick="if(checkAdd()!=false){fillgoodsname('wplbdalei','wplbxiaolei','wplbpinming','wplbpinpai','wplbcount','GoodsName');c();ResetWplb1('wplbdalei','wplbpinming','wplbpinpai','wplbpinpai1','wplbcount','wplbworth');}" value="添加"/> <font style="color: red;">可提交多件物品</font></td>
      </tr>
  </table>
</div>
</div>
<div id="tabHand" style="display:none;">
  <table width="100%">
    <tr>
        <td width="55px" align="right" valign="top" style="padding-top:8px">请填写:</td>
        <td><div style="padding-bottom:5px;">
            大类:<input name="txtdl" type="text" id="txtdl" style="width:110px;" class="inputBorder"/>&nbsp;
            小类:<input name="txtxl" type="text" id="txtxl" style="width:110px;" class="inputBorder"/>&nbsp;
            品名:<input name="TextBox2" type="text" id="TextBox2" style="width:110px;" class="inputBorder"/>&nbsp;
            品牌:<input name="TextBox3" type="text" id="TextBox3" style="width:110px;" class="inputBorder"/>&nbsp;
            </div>
            数量:<input type="text" id="count" style="width: 40px;" class="inputBorder" onblur="class_Changewplb4(this,'wplb');"/> 
            单价:<input id="Text1" type="text" style="width: 40px;" class="inputBorder"/>                       
            &nbsp;<input id="button2" type="button" value="添加" onclick="if(fillgoodsname1('txtdl','txtxl','TextBox2','TextBox3','count','Text1','GoodsName')!=false){d();ResetWplb2('txtdl','txtxl','TextBox2','TextBox3','count','Text1','GoodsName');}"/><font style="color: red;"> 可提交多件物品</font>
        </td>
    </tr>
    <tr>
       <td></td>
       <td><span style="color:red;font-size:13px;font-weight: bolder;">请如实填写，品牌，品名，规格，型号价值。 否则造成海关退运，一切费用和责任由寄件人承担。</span></td>
    </tr>
  </table>
</div>
</div>
<p style="padding:20px 65px 0 65px;">
<input type="button" value="物品信息提交"  class="submit_small" onclick="check_post()" />
<input type="button" value="取消"  class="submit_small" onclick="javascript:DialogClose();"/>
</p>
</form>
</body>
</html>